package com.ecube.protocol.enums;

import lombok.Getter;

/**
 * 换电站协议
 *
 * @author zhuweijun
 * @version 1.0.0
 * @since 2025/8/1 9:49
 */
@Getter
public enum ExchangeFunctionEnum {

    STATION_INFO("state", "S2M", "stationInfo", "上行-换电站属性"),
    CHARGE_STATE("state", "S2M", "chargeState", "上行-充放电实时状态"),

    POWER_ADJUST_SET_RESP("response", "S2M", "powerAdjustSetResp", "上行-功率调节充电设置-回复"),
    POWER_ADJUST_SET_DISCHARGE_RESP("response", "S2M", "powerAdjustSetDischargeResp", "上行-功率调节放电设置-回复"),

    ;

    /**
     * 类型
     */
    private final String type;

    /**
     * 数据方向
     */
    private final String direction;

    /**
     * 功能标识
     */
    private final String function;

    /**
     * 描述
     */
    private final String desc;

    ExchangeFunctionEnum(String type, String direction, String function, String desc) {
        this.type = type;
        this.direction = direction;
        this.function = function;
        this.desc = desc;
    }
}
